<?php
  class UClass
  {
      private $classtype;
      private $returntype;
      private $methods;
      private $attributes;
      private $interfacesUsed;
      
      
      
     public function __construct()
     {
         $this->methods = array();
         $this->attributes = array();
         $this->classtype = $this->SetClassType();
         $this->returntype= "";
         //Diagram::AddToDiagram($this);
         //$this->NewClass();
     }
     
     private function CreateInitialBox()
     {
         
     }
    
    public function AddMethod()
    {
        
    }
    public function DeleteFunction()
    {
        
        
    }
   public function AddAttribute()
    {
        
    }
    public function DeleteAttribute()
    {
        
        
    }
    public function SetClassType($classtype=null)
    {
        switch ($classtype) {
    case 'public':
        $classtype = 'public';
        break;
    case 'private':
         $classtype = 'private';
        break;
    case 'protected':
         $classtype = 'protected';
        break;
    default:
        $classtype = 'private';
}

        return $classtype;
    }
    public function EditClassType()
    {
    }
    public function SetReturnType($returntype)
    {
        $this->returntype=$returntype;
    }
    
    public function DeleteReturnType()
    {
        $this->returntype = NULL; 
    }
    
    public function AddInterface($interface)
    {
     $this->interfacesUsed[]= $interface;    
        
    }
    public function RemoveInterface($interface)
    {
     
     unset($this->interfacesUsed[$interface]);     
        
    }
     
     
     
     
      
      
      
  }
?>
